package cn.edu.mju.service.impl;

import cn.edu.mju.dao.UserDao;
import cn.edu.mju.pojo.User;
import cn.edu.mju.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public boolean login(User user) {
        return userDao.login(user)!=null;
    }

}
